<?php
namespace Kxdrmobile\Model;
use Think\Model;
class HonoraryMedalModel extends Model{
	public $sid;
	public $id;
	public function getMedal(){
		$data["sid"] = $this->sid;
		$data["id"] = $this->id;
		$medal = $this->where($data)->getField("getway,score");
		$METAL_GETWAY = C("METAL_GETWAY");
		$medal["getway"]=key($medal);
		$medal["score"]=current($medal);
		$medal["getway_msg"]=$METAL_GETWAY[$medal["getway"]];
		return $medal;
	}
}